/*CodeBuilder v1.0.4 by 2021/10/7 0:45:18 */
using System;
using ASmile.ORM.Entitys;

namespace ASmile.DBModel
{
	public partial class Dict_Common : EntityBase
	{
		private System.String _Id;
		/// <summary>
		/// Id
		/// </summary>
		[Entity(CNId, 0, true, IsPrimaryKey = true)]
		public System.String Id
		{
			get { return _Id; }
			set
			{
				if (!OnPropertyChanged(CNId, _Id, value)) return;
				_Id = value;
				SetFieldChanged(CNId) ;
			}
		}

		private System.Int16 _DictType;
		/// <summary>
		/// DictType
		/// </summary>
		[Entity(CNDictType, 1, true)]
		public System.Int16 DictType
		{
			get { return _DictType; }
			set
			{
				if (!OnPropertyChanged(CNDictType, _DictType, value)) return;
				_DictType = value;
				SetFieldChanged(CNDictType) ;
			}
		}

		private System.String _DictTypeName;
		/// <summary>
		/// DictTypeName
		/// </summary>
		[Entity(CNDictTypeName, 2)]
		public System.String DictTypeName
		{
			get { return _DictTypeName; }
			set
			{
				if (!OnPropertyChanged(CNDictTypeName, _DictTypeName, value)) return;
				_DictTypeName = value;
				SetFieldChanged(CNDictTypeName) ;
			}
		}

		private System.String _DictCode;
		/// <summary>
		/// DictCode
		/// </summary>
		[Entity(CNDictCode, 3, true)]
		public System.String DictCode
		{
			get { return _DictCode; }
			set
			{
				if (!OnPropertyChanged(CNDictCode, _DictCode, value)) return;
				_DictCode = value;
				SetFieldChanged(CNDictCode) ;
			}
		}

		private System.String _DictValue;
		/// <summary>
		/// DictValue
		/// </summary>
		[Entity(CNDictValue, 4, true)]
		public System.String DictValue
		{
			get { return _DictValue; }
			set
			{
				if (!OnPropertyChanged(CNDictValue, _DictValue, value)) return;
				_DictValue = value;
				SetFieldChanged(CNDictValue) ;
			}
		}

		private System.String _DictValuePY;
		/// <summary>
		/// DictValuePY
		/// </summary>
		[Entity(CNDictValuePY, 5)]
		public System.String DictValuePY
		{
			get { return _DictValuePY; }
			set
			{
				if (!OnPropertyChanged(CNDictValuePY, _DictValuePY, value)) return;
				_DictValuePY = value;
				SetFieldChanged(CNDictValuePY) ;
			}
		}

		private System.String _DictValueWB;
		/// <summary>
		/// DictValueWB
		/// </summary>
		[Entity(CNDictValueWB, 6)]
		public System.String DictValueWB
		{
			get { return _DictValueWB; }
			set
			{
				if (!OnPropertyChanged(CNDictValueWB, _DictValueWB, value)) return;
				_DictValueWB = value;
				SetFieldChanged(CNDictValueWB) ;
			}
		}

		private System.Int32 _DictValueOrderNo;
		/// <summary>
		/// 排序Id
		/// </summary>
		[Entity(CNDictValueOrderNo, 7, true)]
		public System.Int32 DictValueOrderNo
		{
			get { return _DictValueOrderNo; }
			set
			{
				if (!OnPropertyChanged(CNDictValueOrderNo, _DictValueOrderNo, value)) return;
				_DictValueOrderNo = value;
				SetFieldChanged(CNDictValueOrderNo) ;
			}
		}

		private System.Boolean _IsEnable;
		/// <summary>
		/// IsEnable
		/// </summary>
		[Entity(CNIsEnable, 8, true)]
		public System.Boolean IsEnable
		{
			get { return _IsEnable; }
			set
			{
				if (!OnPropertyChanged(CNIsEnable, _IsEnable, value)) return;
				_IsEnable = value;
				SetFieldChanged(CNIsEnable) ;
			}
		}

		private System.Boolean _AllowChangeCode;
		/// <summary>
		/// 是否允许修改字典Code
		/// </summary>
		[Entity(CNAllowChangeCode, 9, true)]
		public System.Boolean AllowChangeCode
		{
			get { return _AllowChangeCode; }
			set
			{
				if (!OnPropertyChanged(CNAllowChangeCode, _AllowChangeCode, value)) return;
				_AllowChangeCode = value;
				SetFieldChanged(CNAllowChangeCode) ;
			}
		}

		private System.Boolean _AllowDel;
		/// <summary>
		/// AllowDel
		/// </summary>
		[Entity(CNAllowDel, 10, true)]
		public System.Boolean AllowDel
		{
			get { return _AllowDel; }
			set
			{
				if (!OnPropertyChanged(CNAllowDel, _AllowDel, value)) return;
				_AllowDel = value;
				SetFieldChanged(CNAllowDel) ;
			}
		}

		private System.String _Remark;
		/// <summary>
		/// Remark
		/// </summary>
		[Entity(CNRemark, 11)]
		public System.String Remark
		{
			get { return _Remark; }
			set
			{
				if (!OnPropertyChanged(CNRemark, _Remark, value)) return;
				_Remark = value;
				SetFieldChanged(CNRemark) ;
			}
		}

		#region 字段名的定义
		public const string CNId = "Id";
		public const string CNDictType = "DictType";
		public const string CNDictTypeName = "DictTypeName";
		public const string CNDictCode = "DictCode";
		public const string CNDictValue = "DictValue";
		public const string CNDictValuePY = "DictValuePY";
		public const string CNDictValueWB = "DictValueWB";
		public const string CNDictValueOrderNo = "DictValueOrderNo";
		public const string CNIsEnable = "IsEnable";
		public const string CNAllowChangeCode = "AllowChangeCode";
		public const string CNAllowDel = "AllowDel";
		public const string CNRemark = "Remark";
		#endregion

	}
}
